//统计某字符的个数
#include<stdio.h>
#include<string.h>
int main()
{
	//i am a good boy 'a'
	int count = 0;
	char arr[] = "i am a good boy";
	char* tmp = strchr(arr, 'a');
	while (tmp) {
		count++;
		tmp = strchr(tmp + 1, 'a');
	}
	printf("%d\n", count);
	return 0;
}